#include <iostream>
#include <cstdio>
using namespace std;
/*
1 1/1

2 1/2
3 2/1

4 3/1
5 2/2
6 1/3

7 1/4
8 2/3
9 3/2
10 4/1

*/
int main(){
	int n,i=1,s=0;
	cin>>n;
	do{
		s+=i;
		i++;
	}while(s<n);
	if(i%2==0){
		cout<<s-n+1<<"/"<<i+n-s-1;
	}else{
		cout<<i+n-s-1<<"/"<<s-n+1;
	}
	return 0;
}
